package com.fac.dto;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * 归还设备DTO
 */
@Data
@ApiModel(description = "归还设备请求参数")
public class LeaseOrderReturnDTO implements Serializable {

    @NotNull(message = "实际归还时间不能为空")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", shape = JsonFormat.Shape.STRING)
    @ApiModelProperty(value = "实际归还时间", example = "2024-01-05 14:00:00", required = true)
    private LocalDateTime actualReturnTime;

    @NotNull(message = "是否正常归还不能为空")
    @ApiModelProperty(value = "是否正常归还", example = "true", required = true)
    private Boolean isNormal;

    @ApiModelProperty(value = "备注说明", example = "设备完好，无损坏")
    private String remarks;
} 